package com.zjm.dao;

import com.zjm.entity.Change_major;
import com.zjm.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChangeMajorDao {
    //学生申请转专业
    int insertChangeMajor(Change_major change_major);
    int insertupdateChangeMajor(Change_major change_major);


    //学生查看转专业进度
    Change_major selectChangeMajor(Integer student_id);
    //辅导员查看转专业申请
    List<Change_major> selectCounsellorChangeMajor(Teacher teacher);
    //院长查看转专业申请
    List<Change_major> selectPresidentChangeMajor(Teacher teacher);


    Change_major selectOnChangeMajor(Integer student_id);

    boolean updatePassFasle(Integer student_id);
    //通过转专业申请
    boolean updateOutCounsellorPass(@Param("student_id")Integer student_id,@Param("major") String major,@Param("pass") String pass);
    //通过转专业申请
    boolean updateOutPresidentPass(@Param("student_id")Integer student_id,@Param("academy")String academy,@Param("pass")String pass);
    //通过转专业申请
    boolean updateInPresidentPass(@Param("student_id")Integer student_id,@Param("academy")String academy,@Param("pass")String pass);
    //通过转专业申请
    boolean updateInCounsellorPass(@Param("student_id")Integer student_id,@Param("major")String major,@Param("pass")String pass);
}
